package com.jyw.business.ins.domain.vo.web;

import com.jyw.common.annotation.Conversion;
import com.jyw.common.constant.SysDictTypeConstant;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

/**
 * @author 沈峻
 * @ClassName UnitItemPageVo
 * @Description TODO
 * @Date 2023/9/27 15:35
 **/
@Data
@ApiModel("配置巡检项巡检单元查询返回实体")
@FieldNameConstants
public class UnitItemPageVo {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("单元名称")
    private String unitName;

    @ApiModelProperty("编号")
    private String unitCode;

    @ApiModelProperty("使用科室")
    @Conversion(value = ConversionType.DEPT,name = Fields.useDepartName)
    private Long useDepartId;

    @ApiModelProperty("使用科室名称")
    private String useDepartName;

    @ApiModelProperty("所属单元目录")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.INS_UNIT_DIRECTORY)
    private String directory;

    @ApiModelProperty("所属单元目录标签")
    private String directoryToName;

    @ApiModelProperty("是否配置巡检项(1是 0否)")
    private Integer itemSetting;

}
